package cn.ryh.designpatterndemo.commandpattern;

/**
 * @ClassName Invoker
 * @Description TODO
 * @Author RaoYH
 * @Date 2019/4/25
 */
public class Invoker {
    private AbstractCommand command;

    public void setCommand(AbstractCommand command) {
        this.command = command;
    }

    public void action(){
        this.command.execute();
    }
}
